package work.chief.service;

import work.chief.entity.Product;

import java.util.List;

public interface ProductService {
    List<Product> selectByState(int state);
    List<Product> selectByCName(String cname);
    Product selectByPid(int pid);
    //分页模糊查询商品
    List<Product> selectProductPage(String name,Integer state,String startTime,String endTime,Integer currentPage,Integer pageSize);
    //模糊查询商品总数
    Integer selectProductCount(String name,Integer state,String startTime,String endTime);

    int deleteByPid(String pid);
    int updateProduct(Product product);
    int addProduct(Product product);

}
